package com.hsoft.zhxy.app.demo_03_01.service;

import com.alibaba.fastjson.JSONObject;
import com.hsoft.zhxy.app.demo_03_01.model.entity.DemoEntity;
import com.hsoft.zhxy.app.demo_03_01.model.query.DemoQuery;

/**
 * All rights Reserved, Designed By 哈尔滨工业大学软件工程股份有限公司
 *
 * @Title: DEMO通用service
 * @Package
 * @Description:
 * @author: zhouzhuoqun
 * @date: 2020-10-24
 */
public interface DemoService {

    /**
     * 查询单条数据
     * @param demoEntity
     * @return JSONObject
     */
    JSONObject findOne(DemoEntity demoEntity);

    /**
     * 查询列表数据
     * @param demoEntity
     * @return
     */
    JSONObject findList(DemoEntity demoEntity);

    /**
     * 查询分页列表数据
     * @param demoEntity
     * @param page
     * @param pageSize
     * @return JSONObject
     */
    JSONObject findListByPage(DemoEntity demoEntity, long page, long pageSize);

    /**
     * 查询用户基础信息数据(分页)
     * @param demoQuery
     * @return JSONObject
     */
    JSONObject findListYhjcxxByPage(DemoQuery demoQuery);

    /**
     * 删除
     * @param demoEntity
     * @return JSONObject
     */
    JSONObject delete(DemoEntity demoEntity);

    /**
     * 新增
     * @param demoEntity
     * @return JSONObject
     */
    JSONObject add(DemoEntity demoEntity);

    /**
     * 修改
     * @param demoEntity
     * @return JSONObject
     */
    JSONObject update(DemoEntity demoEntity);
}
